import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import viteEslint from 'vite-plugin-eslint2'


// 模块组件


import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(),viteEslint()],
  resolve: {
    // 设置路径别名
    alias: {
      '@': resolve(__dirname, './src'),
      '*': resolve('')
    },
  },
  css: {
    preprocessorOptions: {
      less: {
        javaScriptEnabled: true,
      },
    }
  }
})
